<div preview>
	<div class="panel-body">
		<h3>{{result.name}}</h3>
		<div class="row">
			<div class="col-md-12">
				<p>
					发布人：
					<label>{{result.fbr}}</label> | 发布时间：
					<label>{{result.fbsj|date:'yyyy-MM-dd HH:mm'}}</label> | 课程类型：
					<label>{{result.kclb|courseType}}</label>
				</p>
			</div>
		</div>
		<div class="row">
			<div class="col-md-4">
				<a class="thumbnail">
					<img ng-src="{{result.imageUrl}}">
				</a>
			</div>
			<div class="col-md-8">
				<div class="col-md-12" style="padding-left: 20px;">
					<div class="row">
						<label class="col-md-2 control-label">
							<span class="glyphicon glyphicon-user"></span>
							主讲人
						</label>
						<div class="col-md-10">
							<p>{{result.zjr}}</p>
						</div>
					</div>
					<div class="row">
						<label class="col-md-2 control-label">
							<span class="glyphicon glyphicon-dashboard"></span>
							开课时间
						</label>
						<div class="col-md-10">
							<p>{{result.kcsj|date:'yyyy-MM-dd HH:mm EEE'}}</p>
						</div>
					</div>

					<div class="row hidden">
						<label class="col-md-2 control-label">
							<span class="glyphicon glyphicon-time"></span>
							开课时长
						</label>
						<div class="col-md-3">
							<p>{{result.kksc}}</p>
						</div>
					</div>
					<div class="row">
						<label class="col-md-2 control-label">
							<span class="glyphicon glyphicon-map-marker"></span>
							开课地点
						</label>
						<div class="col-md-10">
							<p>{{result.kkdd}}</p>
						</div>
					</div>
					<div class="row">
						<label class="col-md-2 control-label">
							<span class="glyphicon glyphicon-info-sign"></span>
							课程名额
						</label>
						<div class="col-md-3">
							<p>{{result.kcme}}</p>
						</div>
						<label class="col-md-3 control-label">
							<span class="glyphicon glyphicon-check"></span>
							已报名人数
						</label>
						<div class="col-md-3">
							<p>{{result.applys.length||0}}</p>
						</div>
					</div>
					<div class="row text-center media">
						<label class="col-md-12 control-label" ng-init="item=result">
							<data entity="CourseApply" auto-load="true" after-refresh="myApply=data">
								<filter field="stuInfo.user.uid" value="$root.$user.id"></filter>
								<filter field="courseInfo.id" value="item.id"></filter>
							</data>
							<span ng-show="myApply.length>0&&$root.$user.type==0">
								<a disabled="disabled" class="col-md-12 btn btn-lg btn-info">{{(item.status == 1 || $root.currentTime >= item.kcsj)?'已授课':'已报名'}}</a>
							</span>
							<span ng-show="myApply.length==0&&$root.$user.type==0">
								<a  ng-show="(item.applys.length||0)>=item.kcme" ng-disabled="1" class="col-md-12 btn btn-lg  btn-cys">
										{{(item.status == 1 || ctrl.time >= item.kcsj)?'已过期':'名额已满'}}</a>
								<a ng-show=" ((item.applys.length||0)<item.kcme)" ng-disabled="(item.status == 1 || ctrl.time >= item.kcsj)" ng-click="ctrl.apply(item)" class="col-md-12 btn btn-lg  btn-cys">
									{{(item.status 	== 1 || ctrl.time >= item.kcsj)?'已过期':'马上报名'}}</a>
							</span>
						</label>
					</div>
				</div>
			</div>
		</div>
		<fieldset>
			<legend>课程简介</legend>
			<p ng-html="((result.kcjj||'无') | br)"></p>
		</fieldset>
		<fieldset>
			<legend>主讲人简介</legend>
			<p ng-html="((result.zjrjj||'无') | br)"></p>
		</fieldset>
		<fieldset>
			<legend>学习备注</legend>
			<p ng-html="((result.xxbz||'无') | br)"></p>
		</fieldset>
	</div>
</div>